package my.sorter.dao.privateClient;

import my.sorter.bean.EmergencyCase;
import my.sorter.bean.StaffSecurityInfo;
import my.sorter.bean.filter.EmergencyCaseFilter;
import my.sorter.dao.baseClient.StaffMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface PStaffMapper extends StaffMapper {

    StaffSecurityInfo getStaffByJobNumber(Integer jobNumber);

    List<Map> getStaffSecurityJson(Integer jobNumber);

    List<Map> getFullSecurityJson();

    Integer deleteStaffJson(Integer jobNumber);

    Integer createStaffJson(@Param("jobNumber") Integer jobNumber, @Param("roleValue") String roleValue);

    Integer addDiagnosesDetail(
            @Param("id") String id,
            @Param("diId") String diagnosesId,
            @Param("dName") String detailName,
            @Param("dDegree") String detailDegree);

    Integer deleteDiagnosesDetail(String diagnosesId);

    List<EmergencyCase> getFullDiagnoses(EmergencyCaseFilter filter);
}
